package com.jdz.gxq.info.admin.landclear.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.landclear.bo.Landclear;

public interface LandclearService {
	
	/**
	 * Landclear检索分页用，查询记录条数
	 * @return
	 */
	public int getLandclearsCount(String enterpriseName);
	
	/**
	 * Landclear检索
	 * @return
	 */
	public List<Landclear> getLandclears(Map<String, Object> params);
	
	/**
	 * 追加Landclear
	 * @param landclear
	 */
	public void insertLandclear(Landclear landclear);
	
	/**
	 * 更新Landclear
	 * @param landclear
	 */
	public void updateLandclear(Landclear landclear);
	
	/**
	 * 通过id得到landclear
	 * @param id
	 * @return
	 */
	public Landclear getLandclearById(int id);
	
	/**
	 * 删除Landclear
	 * @param landclear
	 */
	public void deleteLandclear(int id);
	
	/**
	 * 验证landclearName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkLandclearName(Landclear paramLandclear, int flag);

}
